Part Number Hot Search : 
4232AUA 10004 TK16H60C SSTC5 1510G DS1238A D2W202 C5002
Product Description
Full Text Search
 

To Download ST62GP-DBE Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  st62gp-emu2 hds2 series emulator user manual release 1.2 december 2000 ref: doc-st62gp-emu2
use in life support devices or systems must be expressly authorized. stmicroelectronics products are not authorized for use as critical components in life support devices or systems without the express written approval of stmicroelectronics. as used herein: 1. life support devices or systems are those which (a) are intended for surgical implant into the body, or (b) support or sustain life, and whose failure to perform, when properly used in accordance with instructions for use provided with the product, can be reasonably expected to result in significant injury to the user. 2. a critical component is any component of a life support device or system whose failure to perform can reasonably be expected to cause the failure of the life support device or system, or to affect its safety or effectiveness.
table of contents 3/57 chapter 1: introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.1 about this manual.... ..................................................................................... 7 1.2 getting assistance ........................................................................................ 7 chapter 2: getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.1 delivery checklist .......................................................................................... 9 2.2 adapters for ssop devices ........................................................................ 11 2.3 installing the hardware ................................................................................ 11 2.4 how to power on and off ............................................................................. 17 chapter 3: wgdb6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.1 your system requirements .......................................................................... 19 3.2 installing wgdb6 and other st6 software tools ........................................ 19 3.3 launching wgdb6 ..................................................................................... 21 chapter 4: tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.1 introduction ................................................................................................. 23 4.2 required tools ............................................................................................. 23 4.3 getting prepared ......................................................................................... 23 4.4 lets go! ...................................................................................................... 24 4.5 step mode .................................................................................................. 27 4.6 run mode ................................................................................................... 34 4.7 conclusion .................................................................................................. 35 4.8 using the tutorial with st62 devices other than the st6265 ...................... 37 chapter 5: emulator features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 5.1 clock source ............................................................................................... 39 5.2 dedication board oscillator ......................................................................... 39 5.3 probe board oscillator ................................................................................. 39 5.4 external signal input on oscin pin ............................................................ 40 5.5 changing the oscillator on the probe board ................................................ 40 5.6 emulator electrical characteristics .............................................................. 42 5.7 status leds ................................................................................................ 42 5.8 step mode advantages of the st62gp-emu2 ........................................... 42 5.9 using the trigger outputs ............................................................................. 43 5.10 using the analyzer probe ............................................................................ 44 5.11 emulator functional limitations and discrepancies ...................................... 45 1
table of contents 4/57 appendix a: troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 a.1 identifying the problem ............................................................................... 47 a.2 changing the parallel port setup on your pc ............................................ 48 appendix b: glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 product support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 getting prepared before you call............................................................................... 53 contact list ............................................................................................................... 53 software updates ...................................................................................................... 54 index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
st62gp-emu2 emulator user manual 1 - introduction 5/57 1 introduction thanks for choosing st6! this manual will help you get started with the st62gp- emu2 emulator kit. the st62gp-emu2 emulator kit allows you to control the execution of programs that you have written for the st62 series of mcus and assists you in debugging your application hardware as well as your software. the real-time capability of the st62gp-emu2 allows you to run your application at full speed while still under debugger control. this allows you to test your program while running under the same conditions as the final application. note: if you come across any terms or abbreviations you do not understand, you can check their meaning in the glossary on page 49. first off, check that the st6 mcu that you have picked for your application is in the list of devices supported by this emulator. you will be able to choose and emulate any of these 21 devices by configuring the st6 debugger, wgdb6: supported devices collectively known in this document as.... st6200c st6201c st6203c st6208c st6209c st620x st6210c st6215c st621x st6220c st6225c st622x st6218c st6228c st6218/28 st6252c st6353c st6255c st625x
1 - introduction st62gp-emu2 emulator user manual 6/57 the st6 hds2 emulator series is a modular system. the emulator is principally made up of two boards: ? the dedication board or dbe. ? the main board. if you look at the emulator front panel, you will see that the main board is installed in the lower slot of the enclosure while the dedication board is installed in the upper slot. the main board is common to all st6 hds2 emulators. it emulates the st6 program memory and contains the breakpoint logic, trace memory and all the logic needed for real time emulation. the dedication board applies to the set of specific devices listed in the table above. it emulates all peripherals related to these devices (ram, eeprom, adc, timers, i/os, etc.). with this modular architecture, once you have bought a complete emulator, you only need to change the dedication board (which is supplied with the probe boards included) to emulate other st6 devices. in addition to the st wgdb6 debugger, a third-party debugger, raisonances wrkit devopment suite software package, is supported by the st62gp emulator. this software is included in the mcu-on-cd cd-rom provided with your emulator kit. st6230 st6232 st6235 st623x st6260c st6262c st6263c st6265c st626x supported devices collectively known in this document as....
st62gp-emu2 emulator user manual 1 - introduction 7/57 1.1 about this manual.... detailed instructions on how to install your emulator configuration are described in chapter 2: getting started on page 9. how to install your software is described in chapter 3: installing the software on page 19. chapter 4: tutorial on page 23 familiarizes you with the emulator environment using an example program. the emulator kits hardware features are described in chapter 5: emulator features on page 39. 1.2 getting assistance for more information, application notes, faqs and software updates on all the st microcontroller families, check out the cd-rom or our website: http://mcu.st.com for assistance on all st microcontroller subjects, or if you need help with using your emulator, refer to product support on page 53. well be glad to help you!
1 - introduction st62gp-emu2 emulator user manual 8/57
st62gp-emu2 emulator user manual 2 - getting started 9/57 2 getting started 2.1 delivery checklist the following items are packed with the st62gp-emu2 (refer to figure 1 ): ? st62gp-emu2 box with two flat cables for connecting a probe. ? one db324/dip probe board for use with st6230, st6218 and st6228 target devices. ? one db324/sdip42 probe board for use with the st6232 target device. ? one db448 probe board for use with st620x, st621x and st622x target devices. ? one db449 probe board for use with 5x and 6x devices, including: - 16-pin probe with 3 different male-male interfaces, depending on the target device. - 20-pin probe with 3 different male-male interfaces, depending on the target device. - 28-pin probe with 3 different male-male interfaces, depending on the target device. a duplicate set of these interfaces is provided in case of damage. caution: take precautions against electrostatic discharge (esd) before unpacking the emulator probe boards. these boards must only be handled in a static-safe area. ? three probe adaptersdip16, dip20 and dip28to be soldered to a footprint. ? three so adaptersso16, so20 and so28. note: if the probe boards are already assembled with so adapters, refer to figure 3 on page 12 for how to use the dip connectors, if required. ? one parallel interface cable (ref.: db25m/db25m). ? one power adapter. ? one power cable. ? two ferrites to be clipped over the flat cables (for emc compliance). ? analyser probes. ? a cd-rom, containing the wgdb6 debugger software. (not shown). ? this manual. (not shown).
2 - getting started st62gp-emu2 emulator user manual 10/57 note: do not use other parallel interface cables, power adapters or other accessories with the st62gp-emu2. figure 1: st62gp-emu2 emulator kit contents parallel interface cable power adapter power cable flat cables st62gp-emu2 box ferrites interface adapters analyzer probes dip16 dip20 dip28 db324 4 probe boards: db324/dip db324/sdip db448 db449 so adapters so16 so20 so28
st62gp-emu2 emulator user manual 2 - getting started 11/57 2.2 adapters for ssop devices if you wish to emulate ssop devices, you must order the following adapters: ? 16-pin ssop adapter (ref.: db381). ? 28-pin ssop adapter (ref.: db388). refer to product support on page 53 for a contact list of qualified stmicroelectronics representatives near you. 2.3 installing the hardware to set up your emulator hardware, follow these steps: 2.3.1 step 1: connecting the emulator to your pc 1 shut down and power off the pc that is to be connected to the st62gp-emu2. 2 ensure that both the st62gp-emu2 emulator and your application board are disconnected from their power supplies. 3 connect the parallel interface cable supplied with the st62gp-emu2 emulator kit to a parallel connector on your pc (lpt1 or lpt2). 4 connect the parallel interface cable to the parallel port connector on the back panel of the st62gp-emu2 (see figure 2 ). 2.3.2 step 2: putting together your emulator probe 1 select one of the emulator probes supplied in the package and mount the footprint adapter for so devices if necessary (refer to figure 3 ). table 1 figure 2: st62gp-emu2 back panel power on/off power connector parallel port switch
2 - getting started st62gp-emu2 emulator user manual 12/57 indicates which probe board and footprint should be used with your target device. figure 3: dip probe connectors with so adapter target device probe board st6200c st6201c st6203c db448 with dip16 footprint: interface to be added st6208c st6209c st6210c st6220c db448 with dip20 footprint: interface to be added st6215c st6225c db448 with dip28 footprint: interface to be added st6252c st6262c db449 with dip16 footprint: interface to be added table 1: use of probe boards and footprints so adapter fixed dip connector replaceable dip connector (keep in place to protect fixed dip connector from pin breakage)
st62gp-emu2 emulator user manual 2 - getting started 13/57 2 configure the probe board settings using the information in table 2 . st6353c st6260c st6263c db449 with dip20 footprint: interface to be added st6255c st6265c db449 with dip28 footprint: interface to be added st6230c db324 with dip28 footprint: interface to be added st6232c db324 with sdip42 footprint st6235c db324 with qfp52 footprint: third probe must be ordered separately st6218 db324 with dip20 footprint: interface to be added st6228 db324 with dip28 footprint: interface must be added jumper setting function remark w1 1-2 clock source is user-installed oscillator on probe board in the oscilla posi- tion. refer to clock source on page 39 for more informa- tion. 2-3 clock source is a signal input on the probe board in the oscin position. w2 1-2 jumper installed: disable user- installed oscillator on probe board no jumper: enable user-installed oscillator on probe board. this jumper must be installed if an oscillator on the probe board is not used. table 2: probe settings target device probe board table 1: use of probe boards and footprints
2 - getting started st62gp-emu2 emulator user manual 14/57 2.3.3 step 3: connecting the emulator to the probe 1 remove the dedication board from the st62gp-emu2 enclosure as follows: a completely loosen the two screws on the front panel of the dedication board (see figure 4 ). b extract the board by placing your thumbs on the two handles and pressing them firmly outwards to loosen the board (see figure 5 ). c slide the board out gently and place it on a static-safe surface. figure 4: st62gp-emu2 front panel figure 5: using the extractor handles to loosen the dedication board triggers analyzer probe st6 hds2 emulator dedication board stop wait flat cable exit power run screw screw right extractor handle left extractor handle main board dedication board main board
st62gp-emu2 emulator user manual 2 - getting started 15/57 2 connect the two flat cables between the dedication board and the emulator probe as follows (refer to figure 7 ): a connect one flat cable to j1 on the probe board and j1 on the dedication board (see schema of dedication board in figure 6 ). b connect the other flat cable to j2 on the probe board and j2 on the dedica- tion board. note: the cable must be kept parallel between the emulator and the probe. figure 6: schema of dedication board j2 j1
2 - getting started st62gp-emu2 emulator user manual 16/57 3 slide the dedication board gently back in its slot in the st62gp-emu2, pressing it firmly into place. 4 clip the two ferrites to the flat cables, positioning them as close as possible to each end of the flat cables (see figure 7 ). 2.3.4 step 4: powering up 1 plug the power jack from the power adapter to the power connector on the st62gp-emu2 back panel (refer to figure 2 on page 11). 2 connect the power adapter to the mains power supply. 3 plug the probe connector in the mcu socket of the application board. 4 power on the pc. 5 switch on the st62gp-emu2 using the power switch on the back panel (see figure 2 ). 6 the power led on the front panel should light up (see figure 4 ). if not, refer to troubleshooting on page 47, otherwise proceed to the next step. figure 7: installing the flat cables ferrites j2 connector j1 connector j1 connector j2 connector dedication board probe pin 1 edges of flat cables j1 connector
st62gp-emu2 emulator user manual 2 - getting started 17/57 7 to run the emulator, you must now install the windows debugger software for st6 (wgdb6). to do this, refer to installing the software on page 19. 8 power on the application board. 2.4 how to power on and off when powering on the emulator, always proceed in this order: 1 power on the development pc. 2 power on the st62gp-emu2. 3 start wgdb6 and load your program. 4 power on the application board. when turning off the emulator, proceed in the reverse order.
2 - getting started st62gp-emu2 emulator user manual 18/57
st62gp-emu2 emulator user manual 3 - wgdb6 19/57 3 wgdb6 3.1 your system requirements to run/install the software provided on the mcu on cd cd-rom, you must have a pc running either microsoft ? windows ? 95, windows ? 98 or windows ? nt ? . 3.2 installing wgdb6 and other st6 software tools your emulator comes with the mcu on cd cd-rom which contains a number of st6 software tools. to install them, follow these steps: 1 place the mcu on cd cd-rom in your cd-rom drive. the cd-roms autorun feature opens up a welcome screen on your pc. if the autorun feature does not work, use windows ? explorer to browse to the cd-roms root folder, and double-click on welcome.exe . 2 select install your development tools from the list of options. a new screen appears listing the different families of stmicroelectronics mcus. 3 use your mouse to place the cursor over the st6 tools option. choose st tools and st6 toolchain from the lists that appear. 4 the install wizard is launched. follow the instructions that appear on the screen. you can choose the package you wish to install. to install the complete st6 toolchain for your emulator, select complete toolchain for emulator . this option installs the wgdb6 debugger version for your emulator, as well as a windows epromer and st6 assembler-linker software. alternatively, you can choose to perform a custom installation where you choose which of the available software applications you wish to install. note: in order to configure your emulator, you must, as a minimum, install the st6 wgdb6 for emulator if you do not choose any options, but click next> , the st6 assembler-linker will be installed by default. 5 follow the instructions that appear on your screen. you will be prompted to select the parallel port you wish to connect the emulator to, as well as the program folder that the software will be installed to. 6 if you are installing wgdb6 on a windows ? nt ? platform, you must install the windows ? nt ? parallel port driver supplied on the cd-rom.
3 - wgdb6 st62gp-emu2 emulator user manual 20/57 a window pops up if you have not already installed this driver ( parstm.sys ). 7 click ok . the following window appears: 8 click install . the following window appears: 9 click ok , the installation is now complete. the following window appears. 10 choose to read the release notes or start wgdb6, then click the finish button.
st62gp-emu2 emulator user manual 3 - wgdb6 21/57 3.3 launching wgdb6 from windows ? 95, 98 or windows ? nt, click the start button, point to programs -> st6 tool chain -> development tools , then choose wgdb6 emulator . refer to the wgdb6 windows debugger for the st6 family user manual for full instructions on how to use wgdb6. this manual is available in pdf format on the mcu on cd cd-rom.
3 - wgdb6 st62gp-emu2 emulator user manual 22/57
st62gp-emu2 emulator user manual 4 - tutorial 23/57 4 tutorial 4.1 introduction the goal of this tutorial is make you familiar with the emulator environment using an example program installed in the following directory: d:\program files\stm\st6toolchain\soft the example uses the standard timer of the st6265 to toggle an i/o pin (pb0). you can easily modify this example to work with other devices, because the hardware resources it uses can be found on all st6 devices supported by the st62gp-emu2. to find out how to modify the program, refer to using the tutorial with st62 devices other than the st6265 on page 37. the example program is located in the following directory: d:\program files\stm\st6toolchain\soft\6x-emu2\tutorial the file is called tutorial.asm . 4.2 required tools the following tools are required to do this tutorial: ? st62gp-emu2. ? oscilloscope. ? 5 v power supply. 4.3 getting prepared before you start the tutorial, make sure your system has been correctly set-up. to do so: 1 install the st62gp-emu2 emulator as described in installing the hardware on page 11. - the tutorial example is based on a st6265 device. - on the 28-pin db449 probe board, there should be a jumper in w2 (jumper w1 is irrelevant in this case). 2 install the software (i.e. the wgdb6 debugger) as described in installing the software on page 19.
4 - tutorial st62gp-emu2 emulator user manual 24/57 4.4 lets go! this section gives you a quick step-by-step procedure, showing how to run & step through the tutorial.asm tutorial program. note: refer to the comments in the tutorial.asm program for information on what each instruction does. in this example, since we are not using an application board, you should connect the probe to a regulated 5 v power supply ?v dd (pin 11): 5 v ?v ss (pin 12): 0 v caution: be careful when applying the 5 v to ensure that you dont short circuit the emulator. 1 start the wgdb6 emulator: 2 from the windows start menu, select start -> programs -> st6 tool chain - > development tools -> wgdb6 -> emulator st6 . this starts the software used for emulation. the about wgdb6 window (see figure 8 ) pops up. note: do not click the ok button but wait for the communications link between the emulator and the pc to be synchronized. figure 8: about wgdb6 window
st62gp-emu2 emulator user manual 4 - tutorial 25/57 3 after synchronization is completed, the control bar window (see figure 9 ) pops up. 4 once the wgdb6 is launched you can select a dbe family by selecting commands-> dbe family -> st6xxx from the main menu. 5 after selecting the dbe family, select commands -> micro_name... , the micro name window is displayed (see figure 10 ). 6 in the micro name window choose a family from the pull down list and then choose a micro from the micro list. 7 after you have selected the correct emulator, from the main menu, select commands -> micro_configuration... . depending on the emulator selected, different configuration options are available. figure 9: control bar window figure 10: micro name window
4 - tutorial st62gp-emu2 emulator user manual 26/57 for example, the st6265 emulator has the following micro configuration options: however, the st6200 emulator has the following micro configuration options:
st62gp-emu2 emulator user manual 4 - tutorial 27/57 the first option, frequency , is the same for all emulators. the options listed below this depend on the specific emulator. 8 open the tutorial.hex file by selecting file -> open from the main menu, and then browsing to d:\program files\stm\st6toolchain\soft\6x- emu2\tutorial where the tutorial.hex file is located. double-click on the file to open it. 9 a window titled tutorial.asm (see figure 11 ) pops up and the title of the control bar changes to st626x emulator tutorial.hex . there are two ways of executing the tutorial.hex file, one way is to step through each of its instructions and the other is to run through each of its instructions. both will be described in this tutorial, beginning with stepping. 4.5 step mode in this procedure, we learn how to execute programs step-by-step. before doing this, we must setup the watch window, to observe what happens when each instruction is executed. figure 11: tutorial.asm window
4 - tutorial st62gp-emu2 emulator user manual 28/57 1 in the control bar , click windows -> browser . the browser window pops up (see figure 12 ). 2 in the browser window, click the arrow next to type , select data and click apply . figure 12: browser window
st62gp-emu2 emulator user manual 4 - tutorial 29/57 3 scroll through the symbols to find ddrb , click it once to highlight it and then click add to watch. this causes the watch window (see figure 13 ) which displays the contents of ddrb to pop up. 4 in the watch window, click on ddrb and then display , base , hexadecimal . this changes the ddrb register (because it is highlighted) from decimal to hexadecimal notation. then click display , prefs and hexa - this will make any new register that is added to the watch window be displayed in hexadecimal format. 5 make the watch window smaller and move the watch , browser , tutorial.asm and control bar windows to a location on the screen where they can all be easily read. 6 in the browser window, add the following registers to the watch window in the same way that you added ddrb : orb , drb , drbcopy , ior , tscr and tcr . close the browser window. note: you can also type the names of the registers directly in the watch window. 7 in the control bar, click commands, then reset . this resets the microcontroller and places the program counter at the reset vector. 8 in the control bar, click step. this executes only one instruction and since the instruction at the reset vector is jp reset, it will jump to where the label reset is located. after the jp reset instruction is executed, the ldi ddrb,01h instruction will be highlighted. note: the highlighted instruction is the next one to be executed. results: the watch window shows the drb value to be ffh in hexadecimal as shown in figure 14 . this is due to the port b configuration: all the port b i/ figure 13: watch window
4 - tutorial st62gp-emu2 emulator user manual 30/57 os are defined as input with pull-up (reset state). the pull-ups have the effect that the pins are all high (logic 1), and because they are all configured as input this means their logic state is read from the drb. the other variables ( drbcopy ...) are not yet initialized at this stage. 9 note that in the watch window, the contents of the ddrb register is 00h in hexadecimal notation. in the control bar click the step button again. this loads the hexadecimal value 01h into the ddrb register. 10 click the step button again. this loads the hexadecimal value 01h into the orb register. 11 click the step button again. this loads the hexadecimal value 00h into the drbcopy register. figure 14: tutorial.asm and watch windows
st62gp-emu2 emulator user manual 4 - tutorial 31/57 we could continue this stepping process and watch each register being loaded, as the instructions are executed one-by-one, but for the purposes of this tutorial we will leave the stepping process and continue executing the program without stepping. 12 in the tutorial.asm window, scroll down to the jrs 0,drbcopy,lowbit instruction and click it once - this highlights the instruction in blue. this instruction is in the timer interrupt service routine and will not be reached until the timer interrupts the program (which means that it counts down to zero). 13 click the break button - this causes the instruction to be displayed in bold (see figure 15 ) which means a breakpoint has been set at this instruction. figure 15: tutorial.asm window showing set breakpoin
4 - tutorial st62gp-emu2 emulator user manual 32/57 14 in the control bar, click the cont button - this runs the program from the current program counter location without stopping until a breakpoint is encountered (see figure 16 ). 15 after the program stops running (note that it has stopped where the breakpoint was set), click the step button in the control bar. it executes the jrs 0,drbcopy,lowbit instruction which tests the zero bit of the drbcopy register to see if it is a 1 or a 0. if it is a 1, then it jumps to the label referred to as lowbit . in our case the zero bit is 0, so the jrs instruction does not make a jump and the next instruction is highlighted ( ldi drbcopy,01h ). 16 click the step button again - this loads the hexadecimal value 01h into the drbcopy register. results: look at the oscilloscope which is displaying the voltage level of pin pb0 and note that it is low (0 v). 17 click the step button again - this loads the hexadecimal value 01h into the drb register. results: look at the oscilloscope which is displaying the voltage level of pin pb0 and note that it has changed to high (5 v). the reason why it changed is because the last instruction that was executed changed pb0 from output figure 16: breakpoint encountered
st62gp-emu2 emulator user manual 4 - tutorial 33/57 push-pull with a 0 in its data register to output push-pull with a 1 in its data register. note: in the watch window, the contents of the tscr register is efh in hexadecimal notation. 18 in the control bar click the step button. this resets the 7th bit of the tscr register, making its value change to 6fh. 19 in the control bar click the cont button. this runs the rest of the instructions and does not stop until a breakpoint is encountered. the cont button runs the code from the current program counter location (the last instruction that was executed). 20 after the program stops running (note that it stops at the same breakpoint that was set before) click the step button in the control bar . it executes the jrs 0,drbcopy,lowbit instruction which tests the zero bit of the drbcopy register to see if it is a 1 or a 0. if it is a 1 then it will jump to the label referred to as lowbit , otherwise it will not jump and the next instruction will be executed, but since the zero bit of the drbcopy register is a 1 it will jump to the lowbit label. 21 click the step button again, this loads the hexadecimal value 00h into the drbcopy register. results: look at the oscilloscope which is displaying the voltage level of pin pb0 and note that it is high (5 v). the voltage level of pb0 is 5 v because pb0 is configured as output push-pull with a 1 in its data register (drb). 22 click the step button again - this loads the hexadecimal value 00h into the drb register. results: look at the oscilloscope which is displaying the voltage level of pin pb0 and note that it has changed to low (0 v). the reason why it changed is because the last instruction that was executed changed pb0 from output push-pull with a 1 in its data register to output push-pull with a 0 in its data register. note: in the watch window that the contents of the tscr register is ef in hexadecimal notation. 23 in the control bar click the step button. this resets the 7th bit of the tscr register, making its value change to 6fh. if we carry on clicking the cont button and stepping through the code we can see that pb0 changes from a logic 0 (low - 0 v) to a logic 1 (high - 5 v) and vice-versa. but, instead of doing that we will stop stepping through the code and run through it instead.
4 - tutorial st62gp-emu2 emulator user manual 34/57 4.6 run mode 1 in the tutorial.asm window, scroll up to the jrs 0,drbcopy,lowbit instruction and click it once. this highlights the instruction in blue. this instruction is in the timer interrupt service routine. click the break button - this turns the instruction back into normal lettering as opposed to bold lettering which means the breakpoint has been removed from this instruction. 2 in the control bar click the run button and watch the oscilloscope which is displaying the voltage level of pin pb0. you will see it change from low to high and high to low continuously. this is a 10.17 hz pwm signal with 50% duty cycle. you may have to adjust the oscilloscope to the right setting to see the 10.17 hz pwm signal. this pwm will not stop until you click the stop button in the control bar . note: the run button runs the code from the reset vector whereas the cont button runs the code from the current program counter location (the last instruction that was executed).
st62gp-emu2 emulator user manual 4 - tutorial 35/57 4.7 conclusion now that you have finished this tutorial, you can start stepping and running your own code in exactly the same way as we have done with the tutorial.asm program. you can customize your debug session by launching other windows from the windows menu on the control bar such as: ? the stack window for displaying the stack status. ? the register window for inspecting the core registers (accumulator, index registers etc.). ? the dump window for inspecting any location in your memory (data and program space). ? the trace window for a log of all the instructions executed. these windows are shown in figure 17 . you can find the files for this advanced debug session in : d:\program files\stm\st6toolchain\soft\6x- emu2\tutorial\wsd_file.
4 - tutorial st62gp-emu2 emulator user manual 36/57 if you have any questions please contact your local stmicroelectronics microcontroller support person (refer to product support on page 53). figure 17: stack, registers and dump windows
st62gp-emu2 emulator user manual 4 - tutorial 37/57 4.8 using the tutorial with st62 devices other than the st6265 you can easily modify the tutorial program to target a device other than the st6265. you need only take into account the interrupt channel to which the timer is connected. any other i/o port can be used for outputting signals. to do so, proceed as follows: 1 in the tutorial.asm file find the following line of code and modify the device version to reflect the new target device: .vers st6265 ; optional 2 in the tutorial.asm file find the following line of code and modify the romsize parameter as appropriate: .romsize 4 ; optional 3 change the hardware register definition file ( *.ini ) to that associated with the device you want to target. these files can be found in the following directory: d:\program files\stm\st6toolchain\soft\6x-emu2\inc_file. 4 if necessary, refer to the device datasheet in order to remap the microcontroller device vector. 5 refer to the device data sheet in order to check the st6 memory mapping, modify the tutorial.asm file as appropriate ( .org and block instructions). 6 select the appropriate device name in the debugger.
4 - tutorial st62gp-emu2 emulator user manual 38/57
st62gp-emu2 emulator user manual 5 - emulator features 39/57 5 emulator features 5.1 clock source the clock source can be configured by software on the dedication board and using jumpers w1 and w2 on the probe board. the clock source can also be configured from an oscillator on the: ? probe board, or ? ttl signal input to the oscin pin of the probe. note: a crystal or ceramic resonator on the application board must not be used as a clock source for the emulator. 5.2 dedication board oscillator the dedication board oscillator is selectable with the software. possible selections are: ? 500khz ?1mhz ?2mhz ?3mhz ?4mhz ?5mhz ?6mhz ?7mhz ?8mhz 5.3 probe board oscillator the probe board has locations for soldering a crystal or a ceramic resonator which can be used as the clock source of the emulated mcu. to select this, 1 select external in the menu command -> micro_configuration -> frequency . 2 remove the jumper between pins 1-2 of w2 on the probe board. 3 install a jumper between pins 1-2 of w1 on the probe board. note: when you install an oscillator on the probe board, you may have to change the capacitors (refer to changing the oscillator on the probe board on page 40).
5 - emulator features st62gp-emu2 emulator user manual 40/57 5.4 external signal input on oscin pin to select this, 1 select external in the menu command -> micro_configuration -> frequency . 2 install a jumper between pins 2-3 of w1 and pins 1-2 of w2 on the probe board. 5.5 changing the oscillator on the probe board if you install a crystal or a ceramic resonator on the probe board, you must change the value of the c4 and c5 capacitors (c3 and c4 capacitors in the case of a db324 probe board) accordingly (see figure 18 ). the capacitors installed (470 pf, 1000 pf) have been tested with crystals in the range 1 to 4 mhz; however, the results you obtain will depend on the characteristics of the crystal you use. figure 18: probe board layout these two capacitors can be modified. m74hc04 (drives user- installable oscillator)
st62gp-emu2 emulator user manual 5 - emulator features 41/57 you can find these components in the following schematic: resonator (not connected) 28 pin probe connectors 16 pin probe connectors analog references used only by st623x families 20 pin probe connectors xtal extal oscout osci n test pb5 nres nres pb0 pb6 pb3 pa1 pb6 nmi app pb1 oscout osci n vsref pc1/tim1/adc pc1 timer vsref pb7 pc6 pc2 pb6 pb7 pb3 pd6 pc7 pc3 pc4 pd4 xtal pd7 nresetap nres pb0 pd3 pb5 pb1 pd5 extal pc5 pc0 pb2 pb4 pa3 nmi app pa2 pe3 pa5 pe2 pa0 pd0 pa4 pd1 pe5 pe0 pa7 pa6 pa1 pe4 pd2 pe1 pe7 pe6 vss vssp avss vccapp pb5 pa3/adc pa3 pa2/adc pa2 vsref pb7 pb6 pb5 vdd avdd vddp vccapp pc1 osci n oscout nmi app nres pb4 pa0 pa1 pa2 pa3 pb0 pb3 pb1 pb2 tim er osci n oscout nmi app pc4 pc5 pc6 pc7 vccapp pa0 pa1 pa2 pa3 pa4 pa5 pa6 pa7 pb0 pb1 pb2 pb3 pb4 pb7 vsref gnd gnd gnd gnd gnd vcc gnd gnd gnd vcc_emu vcc vcc gnd gnd vcc_emu vcc gnd vcc u4d 74hc04 9 8 tp1 tp4 u4a 74hc04 1 2 c4 470pf r3 10m u3 dip28 28 1 27 2 26 3 25 4 24 5 23 6 22 7 21 8 20 9 19 10 18 11 17 12 16 13 15 14 28 1 27 2 26 3 25 4 24 5 23 6 22 7 21 8 20 9 19 10 18 11 17 12 16 13 15 14 j2 he10-50dm 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 r5 10 c2 100nf u2 dip16 1 2 3 4 16 5 15 6 14 7 13 8 12 9 11 10 1 2 3 4 16 5 15 6 14 7 13 8 12 9 11 10 + c11 10mf-ct-16v r6 10 xt1 8mhz-xt-p r2 100k tp3 tp2 c10 100nf r1 100k r4 3.3 w2 mw2x1c 1 2 u4b 74hc04 3 4 tp5 tp8 u1 dip20 20 1 19 2 18 3 17 4 16 5 15 6 14 7 13 8 12 9 11 10 20 1 19 2 18 3 17 4 16 5 15 6 14 7 13 8 12 9 11 10 w1 mw3x1c 1 2 3 1 2 3 c5 10nf j1 he10-50dm 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 c5 100pf u4c 74hc04 5 6
5 - emulator features st62gp-emu2 emulator user manual 42/57 5.6 emulator electrical characteristics 5.6.1 voltage measurement on v dd /v ss probe pins when disconnected from application board if you measure the voltage on the power pins of the probe when disconnected from the target application, it will be much lower than the operating voltage of 5 v. this is normal, because the v dd pin of the probe is used as a reference voltage by the emulator. it aligns itself to the application voltage level when the probe is plugged into the application board and the application board is powered-on. 5.6.2 power consumption of probe the m74hc04 on the probe board (see figure 18 on page 40 for its position) is intended for driving a user-installable oscillator. this m74hc04 is always under power. to obtain 0 a power consumption on the probe board, remove the m74hc04 if you do not need it to drive an oscillator. 5.7 status leds three leds on the front panel of the st62gp-emu2 show the user the state of the emulated st62 device as follow: 5.8 step mode advantages of the st62gp-emu2 the st626p-emu2 emulator, when run with the wgdb6 debugger in step mode, has the following characteristics: ? a/d end of conversion flag when debugging in step mode the a/d converter clock is always present and the a/d conversion is performed at full speed, even when stepping through the program. this will result in the eoc flag appearing to be set immediately when the conversion is started. ? spi communication when debugging in step mode stop wait run meaning on st62 device is in run mode (core at full speed) on on st62 device is in wait mode on on on st62 device is in stop mode
st62gp-emu2 emulator user manual 5 - emulator features 43/57 the spi data register operates at full speed even in step mode. for example, if you load the data register in step mode, the value will be output immediately on the pin. 5.9 using the trigger outputs two connectors for trigger output signals are available on the front panel of the st62gp-emu2. you can generate these signals using the hardware events/trigger menu in the wgdb6 debugger. output out1 and out2 can be programmed in two ways: ? synchronization mode (see figure 19 ) allows you to configure two synchronization pulses (trig1 and trig2) for triggering external hardware. the events can be defined by addresses or address ranges. ? timing measurement mode (see figure 20 ) allows you to measure the time elapsed during a subroutine for example, using an oscilloscope connected to out1. in this case, output out2 is set on a user-defined address (trig1), and reset on another one (trig2). figure 19: synchronization mode out1 out2 trigger event: trig1 trigger event: trig2
5 - emulator features st62gp-emu2 emulator user manual 44/57 out1 is the st6 clock signal (f int ) gated by out2. 5.10 using the analyzer probe the st62gp-emu2 has an input connector for up to 4 external signals which can be used to capture signals from your application hardware to be used as logical conditions for conditional breakpoints. by connecting the analyzer probe to various test points on your application board, you can set up breakpoints that will be triggered depending on the state of your application hardware, plus any other software conditions you may have configured for the breakpoint. 1 in the wgdb6 main window , click hardware events , then memory breakpoints . the memory breakpoints window opens. figure 20: timing measurement mode figure 21: analyzer probe connector pin assignment out1 out2 measurement start: trig1 f int measurement end: trig2 lp3 lp2 lp1 lp0 1 gnd +5v 2 3 4 5 6789
st62gp-emu2 emulator user manual 5 - emulator features 45/57 2 click the conditions button. the hardware conditions window opens as shown in figure 22 . 3 in the logic probe box, click the enable button beneath the logic probes whose values you want to consider. 4 while still in the logic probe box, click the value buttons to set the logic probe values on which you want to break. click ok . these signals must be connected on the lp (logic probe) pins of the analyzer probe connector on the front panel of the st62gp-emu2. the inputs are cmos compatible at 5 v. for more information on breakpoints, refer to the wgdb6 manual or to the wgdb6 on-line help. 5.11 emulator functional limitations and discrepancies 5.11.1 st6 device options on most st6 devices, you can select device options which are described in the datasheet option list and option byte sections (refer to the st6 databook or cd- rom). the st62gp-emu2s functional limitations as regards device options are listed below. figure 22: hardware conditions window
5 - emulator features st62gp-emu2 emulator user manual 46/57 5.11.2 oscillator safeguard enable (osgen) option when this option is selected the osg and lfao frequencies are fixed as follows: note: the osg and lfao frequencies of the st62gp-emu2 are fixed relative to v dd . however, on real devices the osg and lfao frequencies may vary depending on both v dd and the device temperature. 5.11.3 optional external rc network (oscil) not supported by the emulator. note: the restrictions above should not prevent you from fully debugging your software, although you will not be able to test these features using the emulator. 5.11.4 electrical characteristics of a/d converter input pins the emulator adc input pins have an input capacitance ac in of 120 pf on the emulator, compared to 5 pf on the st6 device. this has the effect that, when you switch a/d channels using the emulator, the first conversion may be wrong. this conversion error will not occur when the st6 target device is installed in the final application. 5.11.5 other known problems 5.11.5.1 wait and stop mode in the wgdb6 debugger, if an inspect window is used in real time mode (i.e. red background color) while your program is in stop or wait mode (assuming your program contains these instructions), this causes the emulator to exit these modes. this means that real-time use of the inspect window causes the clock to be reactivated, and the normal running of your program may be disrupted (especially if the stop or wait mode was to facilitate the collection of data). v dd osg lfao 2.4 v to 3.6 v 2 mhz 200 khz 3.6 v to 4.5 v 4 mhz 400 khz 4.5 v to 6 v 8 mhz 800 khz
st62gp-emu2 emulator user manual appendix a: troubleshooting 47/57 appendix a:troubleshooting a.1 identifying the problem if..... .... then 1 the power status led on the st62gp-emu2 front panel is off. check the power cable connections. check the power switch on the st62gp-emu2 back panel. 2 the run status led does not switch on when you start your pro- gram. check the title bar of the wgdb6 main window, you may be in wgdb6 simulator instead of wgdb6 emulator. 3 wgdb6 crashes. remove the wgdb6win.ini from the c:\windows directory and the filename.wsd file from the working directory. if this does not solve the problem, save any work files, delete the directory c:\program files\stm\st6toolchain\soft and re-install wgdb6. 4 error message: -hds2 -lpt1 timeout during synchro- nization check that the st62gp-emu2 is connected to lpt1 and check if the power supply is on. 5 error message: check if the emulator is switched on and if the parallel cable is well con- nected. this message is also displayed when there is a configu- ration mismatch. configure the parallel port of your pc, referring to changing the parallel port setup on your pc on page 48. if the problem persists, save any work files, delete the directory c:\program files\stm\st6toolchain\soft and re-install wgdb6. 6 error message: no message received from the emulator. check that the st62gp-emu2 is powered on, and that the emulator boards are fully inserted in their slots. 7 error message: this action is forbidden while the emulator is running. close wgdb6 and restart windows. 8 error message: error fs_targetreadonly. this message can occur if wgdb6 is installed over an existing version. to correct this problem, save any work files, then delete the directory c:\program files\stm\st6toolchain\soft before reinstalling wgdb6.
appendix a: troubleshooting st62gp-emu2 emulator user manual 48/57 a.2 changing the parallel port setup on your pc if you see this message displayed while you are installing wgdb6, check if the emulator is switched on and if the parallel cable is well connected. this may mean that the setup of the lpt1 or lpt2 port on your pc is not compatible with the st62gp-emu2. this is a problem with some windows 95/98 pcs but usually not with windows nt pcs. to setup the port correctly: 1 shutdown and restart your pc in order to enter the bios setup. 2 follow the messages displayed on the screen and when prompted, press the key required to enter the bios setup (usually a function key or esc key). 3 select the parallel port settings menu. 4 change the mode of the lpt port used for the emulator to ecp, epp, bidirectional or centronics mode ( not spp, standard, unidirectional or printer mode). 5 save your changes and exit the setup.
st62gp-emu2 emulator user manual appendix b: glossary 49/57 appendix b:glossary adc analog-to-digital converter. dedication board a dedication board is one of the two boards installed in the enclosure of the st62gp-emu2. it is the part of the emulator that is specific to a set of st6 devices. it emulates the ram, eeprom, oscillator, timers, watchdog, adc, spi and i/os. it is connected to the probe board by two flat cables. the st6 hds2 emulator is available in specific versions that support a group of st6 devices. each version of the st6 hds2 has a specific dedication board and set of probe boards. dil or dip dual in line, also known as dual in line package. these two abbreviations designate a type of device package with two rows of pins for thru-hole mounting. ecp extended capabilities port. epp enhanced parallel port. footprint designates the dimensions of the location of a component on a printed circuit board or in a socket. it depends on the number of pins, their size, type and positioning. the footprint of each st6 device is specified in the datasheet in the section titled package mechanical data. (see the st6 mcu family databook or mcu-on-cd cd-rom). gdb gnu debugger. gnu acronym for not unix. name of a project developed by the free software foundation.
appendix b: glossary st62gp-emu2 emulator user manual 50/57 mainframe emulator enclosure with only the main board installed. main board the main board is the board installed in the bottom slot of the st62gp-emu2. it emulates the st6 program memory, and contains the breakpoint logic, trace memory and all the logic needed for realtime emulation. lp logic probe. probe board a probe board is a small printed circuit board with a connector to allow you to insert it in the mcu socket of the target board. it is connected to the dedication board by two flat cables. rc network resistor-capacitor network. smd surface mounted device. designates a device with pins that are designed to be glued to the surface of a printed circuit board. contrast with thru-hole devices which have pins that are designed to be inserted in holes on a printed circuit board and soldered. so small outline. designates a type of device package with two rows of pins for smd or socket mounting. spi serial peripheral interface. ssop shrink small outline package. designates a type of device package like so but smaller. emulating these devices requires a special adapter that can be ordered from stmicroelectronics.
st62gp-emu2 emulator user manual appendix b: glossary 51/57 starter kit a printed circuit board for microcontroller evaluation and programming. it has the ability to program one dip eprom or otp part at a time. different starter kits are available for programming different st6 devices. st6 hds2 series the st6 hds2 series is a generic name covering several emulator versions each of which have a specific dedication board to support a set of st6 devices. st62gp-emu2 the st62gp emu2 is the order code of this specific st6 hds2 emulator version with a dedication board for the st620x, st621x, st622x, st623x, st625x, st626x and st6218/28 device families. target board designates your application board. it should include a socket for inserting the st6 device or the emulator probe. wgdb6 windows gnu debugger for st6. this is a software tool running under windows. it is the main user interface when operating the st6-hds2 emulator, and is part of the st6 software development tool chain (editor, assembler, linker and debugger). wgdb6 is supplied on the cd-rom with the st6-hds2 emulator and must be installed on your development pc.
appendix b: glossary st62gp-emu2 emulator user manual 52/57
st62gp-emu2 emulator user manual product support 53/57 product support if you experience any problems with this product or if you need spare parts or repair, contact the distributor or st sales office where you purchased the product: getting prepared before you call collect the following information about the product before contacting st or your distributor: 1 name of the company where you purchased the emulator kit. 2 date of purchase. 3 order code: refer to the side of your emulator kit box. the order code will depend on the region for which it was ordered (i.e. the uk, continental europe or the usa). 4 serial number: the serial number is located on the rear panel of the emulator box. 5 target device: the sales type of the st6 microcontroller you are using in your development. contact list note: for american and canadian customers seeking technical support the us/canada is split in 3 territories. according to your area, contact the following sales office and ask to be transferred to an 8-bit microcontroller field applications engineer (fae). canada and east coast stmicroelectronics lexington corporate center 10 maguire road, building 1, 3rd floor lexington, ma 02421 phone: 781-402-2650 mid west stmicroelectronics 1300 east woodfield road, suite 410 schaumburg, il 60173 phone: 847-517-1890
product support st62gp-emu2 emulator user manual 54/57 west coast stmicroelectronics, inc. 30101 agoura court suite 118 agoura hills, ca 91301 phone: 818-865-6850 europe france (33-1) 47407575 germany (49-89) 460060 u.k. (44-1628) 890800 asia/pacific region japan (81-3) 3280-4120 hong-kong (852) 2861 5700 sydney (61-2) 9580 3811 taipei (886-2) 2378-8088 software updates you can get software updates from the st internet web site http://mcu.st.com. for information on firmware and hardware revisions, call your distributor or st using the contact list given above.
index 55/57 a a/d converter input pins .................................. 46 assignment connector pin ............................................ 44 b board application................................................. 11 dedication.................................................... 6 removal ............................................. 14 main ............................................................ 6 probe......................................................... 40 c cable parallel interface........................................ 11 clock source..................................................... 39 connections emulator to pc .............................. 11, 14, 16 connector parallel port ............................................... 11 d device so............................................................. 11 ssop ........................................................ 11 target......................................................... 12 devices supported .................................................... 5 dil probe .......................................................... 12 discrepancies .................................................... 45 driver nt ............................................................. 19 f footprint ............................................................. 12 footprint adapter ................................................ 11 g glossary............................................................. 49 l leds................................................................. 42 m measurement voltage ...................................................... 42 micro_configuration ......................................... 25 micro_name ..................................................... 25 n nt driver........................................................... 19 o oscillator ........................................................... 39 oscin pin ........................................................ 39 output trigger ....................................................... 43 p peripherals.......................................................... 6 pins input a/d converter ................................... 46 probe analyzer .................................................... 44 program example .................................................... 23 tutorial....................................................... 23 r run & step ....................................................... 24 s software updates..................................................... 54 starting wgdb6................................................ 21 step mode......................................................... 42 stop mode...................................................... 46 support contact numbers for.................................. 53 index
index 56/57 for development kit.................................... 53 information required.................................. 53 t troubleshooting ................................................. 47 ttl signal input ................................................ 39 tutorial.asm ....................................................... 24 v voltage measurement ....................................... 42 w wait mode....................................................... 46 wgdb6 starting...................................................... 21 windows 3.x ..................................................... 19 windows 95 ...................................................... 19 windows 98 ...................................................... 19 windows nt ..................................................... 19
information furnished is believed to be accurate and reliable. however, stmicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result f rom its use. no license is granted by implication or otherwise under any patent or patent rights of stmicroelectronics. specifications menti oned in this publication are subject to change without notice. this publication supersedes and replaces all information previously supplied. stmicroelectronics products are not authorized for use as critical components in life support devices or systems without the ex press written approval of stmicroelectronics. the st logo is a registered trademark of stmicroelectronics. intel ? is a u.s. registered trademark of intel corporation. microsoft ? , windows ? and windows nt ? are u.s. registered trademarks of microsoft corporation. ? 2000 stmicroelectronics - all rights reserved. purchase of i 2 c components by stmicroelectronics conveys a license under the philips i 2 c patent. rights to use these components in an i 2 c system is granted provided that the system conforms to the i 2 c standard specification as defined by philips. stmicroelectronics group of companies australia - brazil - china - finland - france - germany - hong kong - india - italy - japan - malaysia - malta - morocco - sin gapore - spain sweden - switzerland - united kingdom - u.s.a. http://www.st.com 5 7


▲Up To Search▲   

 
Price & Availability of ST62GP-DBE

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X